package com.swyc.osschat.Test.designMode.decorate.strategy;

import com.swyc.osschat.Test.designMode.decorate.base.Dog;

/**
 * @description 具体装饰
 * @Author: z156940l@outlook.com
 * @className 具体装饰
 * @Date: 2022/6/27 15:18
 */
public class DogDecorator extends Decorator{

    public DogDecorator(Dog dog) {
        super(dog);
    }

    @Override
    public void function() {
        super.function();
        //附加功能
        System.out.println("狗：看门护院");
    }
}
